<template>
  <div>
    <job_head></job_head>
    <table align="center">
      <tr>
        <td colspan="4" align="center">
          兑换商城
        </td>
      </tr>
      <tr>
        <td></td>
        <td>名称</td>
        <td>积分</td>
        <td>操作</td>
      </tr>
      <tr v-for="i in from" :key="i.id">
        <td>
          <input type="checkbox">
        </td>
        <td>{{i.name}}</td>
        <td>{{i.integral}}</td>
        <td>
          <button>兑换</button>
        </td>
      </tr>
    </table>
  </div>
</template>

<script>
import job_index from "@/components/job/job_index";
import maxios from "@/http/axios";
export default {
name: "job_convert",
  components:{
    job_head:job_index
  },
  data(){
    return{
      from:{}
    }
  },
  methods:{
    gain_present(){
      maxios('/user/login','get').then(res=>{
        if(res.code==200){
          console.log(res.matter)
          this.from=res.matter
        }
      })
    }
  },
  mounted() {
    this.gain_present()
  }
}
</script>

<style scoped>

</style>